# Contributor: Jose Maria Garcia <josemaria.alkala@gmail.com>
# Maintainer: Jose Maria Garcia <josemaria.alkala@gmail.com>
pkgname=zile
pkgver=2.4.14
pkgrel=0
pkgdesc="GNU Zile is a text editor development kit."
url="https://www.gnu.org/software/zile"
arch="all"
license="GPL3"
depends=""
makedepends="ncurses-dev gc-dev perl help2man"
install=""
subpackages="${pkgname}-doc"
source="https://ftp.gnu.org/gnu/zile/${pkgname}-${pkgver}.tar.gz"
builddir="$srcdir/${pkgname}-${pkgver}"

build() {
        cd "$builddir"
        ./configure \
                --prefix=/usr \
                --sysconfdir=/etc \
                --mandir=/usr/share/man \
                --localstatedir=/var
        make
}

package() {
        cd "$builddir"
        make DESTDIR="$pkgdir" install
        rm -f "$pkgdir"/usr/lib/charset.alias
}

sha512sums="0dea56fd13a82015ec73de3139a4b2c27ad4c001ed535f1bae557ee49f9d8a188610a08160998d0a36b95fec42b46a019fd43634ef6502ebd27e162164de98cc  zile-2.4.14.tar.gz"

